package com.zx.flow.db.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * @author zhangxue
 */
@Data
@TableName("flow_trace_log")
public class FlowTraceEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String traceId;

    private String spanId;

    /**
     * 操作人
     */
    private String accountCode;

    private String eventCode;

    private String eventTypeCode;

    private String flowId;

    private String flowCode;

    private String nodeId;

    /**
     * 请求参数
     */
    private String request;

    /**
     * 响应结果
     */
    private String responseStatus;
    private String responseMsg;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
